import request from '@/utils/request'
import qs from	'qs'
export function login(data) {
  return request({
    url: '/UsersBack/login',
    method: 'post',
		headers: {'Content-Type':'application/x-www-form-urlencoded'},
    data: qs.stringify(data)
  })
}

export function getInfo(token) {
  return request({
    url: '/UsersBack/getInfo',
    method: 'get',
    params: { token }
  })
}

export function logout() {
  return request({
    url: '/UsersBack/logout',
    method: 'post'
  })
}
